package com.kcral.javase.ch.properties;

/**
 * @TODO
 * @Author xu
 * 2025/3/3
 */
public class classMain {
    public static void main(String[] args) {
        GrandFather gf = new GrandFather("grandFather", 50);
        Father f = new Father("father", 40, "teacher");
        gf.getGranderFather();
        f.getGranderFather();
        f.getFather();
    }

}
